cmake_minimum_required(VERSION 2.4)

if( COMMAND cmake_policy )
cmake_policy(SET CMP0003 NEW)
endif (COMMAND cmake_policy)

PROJECT(GIGABASE)

SET(GB_SRCS
blob.cpp
btree.cpp
class.cpp
compiler.cpp
container.cpp
cursor.cpp
database.cpp
exception.cpp
file.cpp
forcerecovery.cpp
hashtab.cpp
localcli.cpp
pagepool.cpp
query.cpp
replicator.cpp
rtree.cpp
server.cpp
session.cpp
symtab.cpp
sync.cpp
unisock.cpp
wwwapi.cpp
w32sock.cpp 
xml.cpp
)

SET(GB_CLI_SRCS
  cli.cpp 
  w32sock.cpp 
  repsock.cpp 
)

#SET( SOCKLIB wsock32 )

ADD_LIBRARY( gigabase STATIC ${GB_SRCS} )
ADD_LIBRARY( cli STATIC ${GB_CLI_SRCS}  )

#ADD_LIBRARY( gigabase_dll SHARED ${GB_SRCS}  ${SOCKLIB} )
#ADD_LIBRARY( cli_dll SHARED ${GB_CLI_SRCS} ${SOCKLIB} )
